//
//  XS_IntegralListCell.swift
//  XueDao
//
//  Created by Mac on 2020/12/24.
//

import UIKit

class XS_IntegralListCell: UITableViewCell {

    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var timeLabel: UILabel!
    @IBOutlet weak var countLabel: UILabel!
    
    var _model : XS_IntegralListModel!
    public var model : XS_IntegralListModel!{
        set{
            _model = newValue
            //设置数据
            timeLabel.text = newValue.createTime
            titleLabel.text = newValue.remark
            countLabel.text = newValue.orderMoneyType == "add" ? ("+"+newValue.payMoney) : ("-"+newValue.payMoney)
        }
        get{
            return _model
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
